<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base <%=basePath%>>
<title></title>
<link href="houtai/css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" >

function goback(){

	location.href="houtai/pages/personalManager/detail.jsp";
}
function ckTitle(){
	var title=document.getElementById("titleName").value;
	var regT=/^\s{0,}$/;//\s空白字符
		if(regT.test(title)||title==null||title.length==0){
			alert("标题不能为空");
			return false;
		}
		return true;
}

function ckContent(){
	var content=document.getElementById("content").value;
	var regC=/^\s{0,}$/;//\s空白字符
		if(regC.test(content)||content==null||content.length==0){
			alert("内容不能为空,请填写完整!");
			return false;
	
		}
		return true;

}
function sub(){
confirm("修改成功!")
	
}

function ckall(){

	return ckTitle()&&ckContent()&&sub();

}


</script>

</head>
<body>
<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="3">
  <tr>
    <td style="height:25px; background-color:#f3f3f3; font-weight:bold" valign="top">
    &nbsp;&nbsp;&nbsp;&nbsp;当前位置：
    <img src="houtai/images/arrow.gif" align="absmiddle">&nbsp;&nbsp;soda创业教育平台&nbsp;&nbsp;
    <img src="houtai/images/arrow.gif" align="absmiddle">&nbsp;&nbsp;后台管理&nbsp;&nbsp;
    <img src="houtai/images/arrow.gif" align="absmiddle">&nbsp;&nbsp;新闻管理</td>
  </tr>
  <tr>
    <td style="height:34px; background-image:url(houtai/images/main_header.gif); border-bottom:1px solid #cfd8e0; padding:0px">
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="20" height="34"><img src="houtai/images/main_headerL.gif" width="20" height="34"></td>
          <td style="color:#90c8e8;"><img src="houtai/images/icon_card.gif" width="16" height="16" align="absmiddle">&nbsp;&nbsp;
          <strong>soda概况管理</strong></td>
        </tr>
    </table></td>
  </tr>
  <tr>
    <td height="100%" valign="top">
    <div style="overflow:auto;height:100%; width:100%">
    <form action="SurveyServlet?param=update1&Type=${survey.surType}" method="post" onsubmit="return ckall()" >
      <table width="100%" border="0" cellpadding="3" cellspacing="1" class="table1">
 
        <tr>
        	<td style="text-align:right">标题</td>
            <td><input type="text" name="titleName" id="titleName" value="${survey.surTitle}" style="width:300px"></td>
        </tr>
        <tr>
        	<td style="text-align:right">内容</td>
            <td><textarea rows="15" cols="52" id="content" name="neirong">${survey.surContent}</textarea></td>
        </tr>
        <tr>
        	<td style="text-align:right"></td>
            <td><input type="submit" value="提交" ><input type="button" value="返回" onclick="goback();"/></td>
        </tr>
      </table>
      
      </form>
    </div>
  </td>
  </tr>
</table>
</body>
</html>